<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			
			<li class="active">添加车位区域</li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Tingche/area_addPost')}">
			<fieldset>
				
				<div class="control-group">
					<label class="control-label">小区名称:</label>
					<div class="controls">
						<select name="xqid" onchange="onxz();"id="slt">
                                                    <option selected="selected" >请选择小区</option>
                                                    <foreach name="xqs" item="v">
							<option value="{$v.id}">{$v.name}</option>
                                                   </foreach>
						</select>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">车位区域名称:</label>
					<div class="controls">
						<input type="text" name="cwarea" id="app">
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">备注:</label>
					<div class="controls">
						<input type="text" name="beizhu" id="model">
						<span class="form-required">*</span>
					</div>
				</div>
			
                            <input type="text" style="display: none" name="xqname" id="xqn" value="">
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<a class="btn" href="{:U('Tingche/carArea')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
      <script>
        function onxz(){
          
           var e=document.getElementById('slt');
           var xq=document.getElementById('xqn')
           var txt=e.options[e.selectedIndex].text;
           xq.value=txt;
        }
    </script>    
	<!--<script src="__PUBLIC__/js/common.js"></script>-->
</body>
</html>